class Animal:
    def __init__(self,name):
        self._name = name
    def run(self):
        print('动物会跑~~~~')
    def sleep(self):
        print('动物睡觉~~~~')
    def bark(self):
        print('动物嗷嗷大叫~~~~')
    @property
    def name(self):
        return self._name
    @name.setter
    def name(self,name):
        self._name = name

class Dog(Animal):
    def __init__(self,name,age):
        #  希望可以直接调用父类的__init__来初始化父类中定义的属性
        # super（）可以用来获取当前的父类
        self._name = name
        self._age = age
    def bark(self):
        print('汪汪汪~~~~')     
class hashiqi(Dog):
    def fan_sha(self):
        print('我是一只傻傻的哈士奇')
# a = Animal()
# d = Dog()
# print()

# h = hashiqi()
# h.sttter(18)
a = Animal('哈士奇')
d = Dog('旺财',19)
d.bark()